#pragma once
#include "McRebarDetailData.h"
#include "configor/json.hpp"

class Conver
{
public:
	static configor::wjson McRebarDetailData2Json(const McRebarDetailData& data);

	static bool Json2McRebarDetailData(const configor::wjson& wj, OUT McRebarDetailData& data);

	static AcGePoint3d Json2Point(const configor::wjson& wj);

	static configor::wjson Point2Json(const AcGePoint3d& pt);

	static double Bulge2Radius(double length, double bulge);
	static double Radius2Bulge(double length, double radius);
};

